package com.fmdj.customer.service.impl;

import com.fmdj.common.util.CommonResult;
import com.fmdj.customer.feign.MapServiceApi;
import com.fmdj.customer.service.OrderPositionService;
import com.fmdj.mps.controller.form.SearchOrderLocationCacheForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
public class OrderPositionServiceImpl implements OrderPositionService {

    @Autowired
    private MapServiceApi mapServiceApi;

    // 查询订单位置缓存
    @Override
    public HashMap searchOrderPositionCache(SearchOrderLocationCacheForm form) {
        CommonResult r = mapServiceApi.searchOrderPositionCache(form);
        HashMap hashMap = (HashMap) r.get(CommonResult.RETURN_RESULT);
        return hashMap;
    }
}
